package utils

var (
  IdVerify               = Rules{"ID": {NotEmpty()}}
  ApiVerify              = Rules{"Path": {NotEmpty()}, "Description": {NotEmpty()}, "ApiGroup": {NotEmpty()}, "Method": {NotEmpty()}}
  MenuVerify             = Rules{"Path": {NotEmpty()}, "ParentId": {NotEmpty()}, "Name": {NotEmpty()}, "Component": {NotEmpty()}, "Sort": {Ge("0")}}
  MenuMetaVerify         = Rules{"Title": {NotEmpty()}}
  LoginVerify            = Rules{"CaptchaId": {NotEmpty()}, "Captcha": {NotEmpty()}, "Username": {NotEmpty()}, "Password": {NotEmpty()}}
  RegisterVerify         = Rules{"Username": {NotEmpty()}, "NickName": {NotEmpty()}, "Password": {NotEmpty()}, "AuthorityId": {NotEmpty()}}
  PageInfoVerify         = Rules{"Page": {NotEmpty()}, "PageSize": {NotEmpty()}}
  CustomerVerify         = Rules{"CustomerName": {NotEmpty()}, "CustomerPhoneData": {NotEmpty()}}
  AutoCodeVerify         = Rules{"Abbreviation": {NotEmpty()}, "StructName": {NotEmpty()}, "PackageName": {NotEmpty()}, "Fields": {NotEmpty()}}
  AuthorityVerify        = Rules{"AuthorityId": {NotEmpty()}, "AuthorityName": {NotEmpty()}, "ParentId": {NotEmpty()}}
  AuthorityIdVerify      = Rules{"AuthorityId": {NotEmpty()}}
  OldAuthorityVerify     = Rules{"OldAuthorityId": {NotEmpty()}}
  ChangePasswordVerify   = Rules{"Username": {NotEmpty()}, "Password": {NotEmpty()}, "NewPassword": {NotEmpty()}}
  SetUserAuthorityVerify = Rules{"AuthorityId": {NotEmpty()}}

  //cases  自定义验证规则
  CreateCaseVerify = Rules{"CaseNo": {NotEmpty()}, "CaseName": {NotEmpty()}, "Inquisitor": {NotEmpty()}}
  GetCaseVerify    = Rules{"ID": {NotEmpty()}}
  //evidences 自定义验证规则
  CreateEvidenceVerify = Rules{"CaseID": {NotEmpty()}, "EvidenceNo": {NotEmpty()}, "EvidenceName": {NotEmpty()}, "EvidenceType": {NotEmpty()}, "SavePath": {NotEmpty()}, "AutoParse": {NotEmpty()}}
  ListEvidencesVerify  = Rules{"CaseId": {NotEmpty()}}
  GetEvidenceVerify    = Rules{"ID": {NotEmpty()}}
)
